<?php

namespace App\Http\Controllers\Counter;

use App\Helper\ApiResponseHelper;
use App\Http\Controllers\Controller;
use App\Http\Resources\GoodsResource;
use App\Models\Goods;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class GoodsController extends Controller
{
//    public function getGoods()
//    {
//        $goods = Goods::latest()->with([
//            'stocks' => function($query) {
//                $query->where('store_id', Auth::user()->store_id);
//            }
//        ])->get();
//
//        return GoodsResource::collection($goods);
//    }
}
